package com.wcy.bysj.service.impl;

import com.wcy.bysj.common.Result;
import com.wcy.bysj.dao.AdminMapper;
import com.wcy.bysj.entity.Admin;
import com.wcy.bysj.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Result changeAdminPwd(Admin admin) {
        int i = adminMapper.changeAdminPwd(admin);
        return Result.success(i);
    }
}
